_loc2_[§§constant(35)] = function(x, y, type, level, name, paramObj)
{
if(type == §§constant(36))
{
var _loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(38)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],level,name);
}
else if(type == §§constant(39))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(40)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],level,name);
}
else if(type == §§constant(41))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(42)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],level,name);
}
else if(type == §§constant(43))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(44)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],level,name);
}
else if(type == §§constant(45))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(46)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],level,name);
}
else if(type == §§constant(47))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(49)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],this[§§constant(48)],paramObj);
}
else if(type == §§constant(50))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(51)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],paramObj);
}
else if(type == §§constant(52))
{
_loc5_ = new eval(§§constant(1))[§§constant(37)][§§constant(53)](this[§§constant(4)],this[§§constant(5)],this[§§constant(9)],name,paramObj);
}
var _loc9_ = _loc5_[§§constant(54)];
var _loc7_ = this[§§constant(55)](x,y,_loc9_);
_loc5_[§§constant(56)](x,y,_loc7_);
this[§§constant(57)](x,y,_loc5_);
};
_loc2_[§§constant(58)] = function(x, y)
{
var _loc2_ = this[§§constant(59)](x,y);
if(_loc2_[§§constant(34)] == §§constant(39) or _loc2_[§§constant(34)] == §§constant(41))
{
_loc2_[§§constant(60)](false);
}
else
{
_loc2_[§§constant(60)]();
}
this[§§constant(57)](x,y,null);
};
_loc2_[§§constant(61)] = function()
{
var _loc3_ = new §\§\§constant(2)§();
var _loc4_ = 0;
while(_loc4_ < this[§§constant(8)])
{
var _loc2_ = 0;
while(_loc2_ < this[§§constant(7)])
{
_loc3_ = this[§§constant(59)](_loc2_,_loc4_);
if(_loc3_[§§constant(34)] == §§constant(39) or _loc3_[§§constant(34)] == §§constant(41))
{
_loc3_[§§constant(60)](false);
}
else
{
_loc3_[§§constant(60)]();
}
this[§§constant(57)](_loc2_,_loc4_,null);
_loc2_ = _loc2_ + 1;
}
_loc4_ = _loc4_ + 1;
}
};
_loc2_[§§constant(55)] = function(x, y, depthMargin)
if(dirType == §§constant(67) or dirType == §§constant(68))
{
var _loc6_ = y - 1;
while(_loc6_ > y - 1 - _loc13_)
{
_loc8_ = this[§§constant(59)](x,_loc6_);
if(_loc8_[§§constant(34)] == §§constant(65) or _loc8_[§§constant(34)] == §§constant(52) or _loc8_[§§constant(34)] == §§constant(50) or _loc8_[§§constant(34)] == §§constant(45))
{
_loc4_[§§constant(69)](_loc8_);
if(_loc6_ <= y - 1 - _loc13_ + 1)
{
_loc3_[§§constant(69)](§§constant(70));
}
else
{
_loc3_[§§constant(69)](§§constant(71));
}
}
else
{
if(_loc8_[§§constant(34)] == §§constant(39) or _loc8_[§§constant(34)] == §§constant(41) or _loc8_[§§constant(34)] == §§constant(43) or _loc8_[§§constant(34)] == §§constant(47))
{
_loc4_[§§constant(69)](_loc8_);
_loc3_[§§constant(69)](§§constant(70));
break;
}
if(_loc8_[§§constant(34)] == §§constant(36))
{
break;
}
}
_loc6_ = _loc6_ - 1;
}
_loc6_ = y + 1;
while(_loc6_ < y + 1 + _loc13_)
{
_loc8_ = this[§§constant(59)](x,_loc6_);
if(_loc8_[§§constant(34)] == §§constant(65) or _loc8_[§§constant(34)] == §§constant(52) or _loc8_[§§constant(34)] == §§constant(50) or _loc8_[§§constant(34)] == §§constant(45))
{
_loc4_[§§constant(69)](_loc8_);
if(_loc6_ >= y + 1 + _loc13_ - 1)
{
_loc3_[§§constant(69)](§§constant(70));
}
else
{
_loc3_[§§constant(69)](§§constant(71));
}
}
else
{
if(_loc8_[§§constant(34)] == §§constant(39) or _loc8_[§§constant(34)] == §§constant(41) or _loc8_[§§constant(34)] == §§constant(43) or _loc8_[§§constant(34)] == §§constant(47))
{
_loc4_[§§constant(69)](_loc8_);
_loc3_[§§constant(69)](§§constant(70));
break;
}
if(_loc8_[§§constant(34)] == §§constant(36))
{
break;
}
}
_loc6_ = _loc6_ + 1;
}
}
if(dirType == §§constant(67) or dirType == §§constant(72))
{
var _loc7_ = x - 1;
while(_loc7_ > x - 1 - _loc13_)
{
_loc8_ = this[§§constant(59)](_loc7_,y);
if(_loc8_[§§constant(34)] == §§constant(65) or _loc8_[§§constant(34)] == §§constant(52) or _loc8_[§§constant(34)] == §§constant(50))
{
_loc4_[§§constant(69)](_loc8_);
if(_loc7_ <= x - 1 - _loc13_ + 1)
{
_loc3_[§§constant(69)](§§constant(70));
}
else
{
_loc3_[§§constant(69)](§§constant(71));
}
}
else
{
if(_loc8_[§§constant(34)] == §§constant(39) or _loc8_[§§constant(34)] == §§constant(41) or _loc8_[§§constant(34)] == §§constant(43) or _loc8_[§§constant(34)] == §§constant(47))
{
_loc4_[§§constant(69)](_loc8_);
_loc3_[§§constant(69)](§§constant(70));
break;
}
if(_loc8_[§§constant(34)] == §§constant(36) or _loc8_[§§constant(34)] == §§constant(45))
{
break;
}
}
_loc7_ = _loc7_ - 1;
}
_loc7_ = x + 1;
while(_loc7_ < x + 1 + _loc13_)
{
_loc8_ = this[§§constant(59)](_loc7_,y);
if(_loc8_[§§constant(34)] == §§constant(65) or _loc8_[§§constant(34)] == §§constant(52) or _loc8_[§§constant(34)] == §§constant(50))
{
_loc4_[§§constant(69)](_loc8_);
if(_loc7_ >= x + 1 + _loc13_ - 1)
{
_loc3_[§§constant(69)](§§constant(70));
}
else
{
_loc3_[§§constant(69)](§§constant(71));
}
}
else
{
if(_loc8_[§§constant(34)] == §§constant(39) or _loc8_[§§constant(34)] == §§constant(41) or _loc8_[§§constant(34)] == §§constant(43) or _loc8_[§§constant(34)] == §§constant(47))
{
_loc4_[§§constant(69)](_loc8_);
_loc3_[§§constant(69)](§§constant(70));
break;
}
if(_loc8_[§§constant(34)] == §§constant(36) or _loc8_[§§constant(34)] == §§constant(45))
{
break;
}
}
_loc7_ = _loc7_ + 1;
}
}
_loc13_ = _loc4_[§§constant(32)];
var _loc2_ = new §\§\§constant(2)§();
var _loc9_ = undefined;
var _loc5_ = 0;
while(_loc5_ < _loc13_)
{
_loc2_ = _loc4_[_loc5_];
_loc9_ = _loc3_[_loc5_];
if(_loc2_ != undefined)
{
if(_loc2_[§§constant(34)] == §§constant(39) or _loc2_[§§constant(34)] == §§constant(41))
{
_loc2_[§§constant(73)]();
}
else if(_loc2_[§§constant(34)] == §§constant(43) or _loc2_[§§constant(34)] == §§constant(52) or _loc2_[§§constant(34)] == §§constant(50))
if(_loc5_[§§constant(34)] == §§constant(39) or _loc5_[§§constant(34)] == §§constant(41) or _loc3_[§§constant(34)] == §§constant(39) or _loc3_[§§constant(34)] == §§constant(41) or _loc7_[§§constant(34)] == §§constant(39) or _loc7_[§§constant(34)] == §§constant(41) or _loc4_[§§constant(34)] == §§constant(39) or _loc4_[§§constant(34)] == §§constant(41))
{
return true;
}
return false;
};
_loc2_[§§constant(104)] = function(x, y)
{
var _loc3_ = getTimer();
var _loc6_ = this[§§constant(59)](x,y - 1);
var _loc4_ = this[§§constant(59)](x,y + 1);
var _loc8_ = this[§§constant(59)](x - 1,y);
var _loc5_ = this[§§constant(59)](x + 1,y);
var _loc2_ = 0;
if(_loc6_[§§constant(34)] == §§constant(65) or _loc6_[§§constant(34)] == §§constant(43))
{
_loc2_ = _loc2_ + 1;
}
if(_loc4_[§§constant(34)] == §§constant(65) or _loc4_[§§constant(34)] == §§constant(43))
{
_loc2_ = _loc2_ + 1;
}
if(_loc8_[§§constant(34)] == §§constant(65) or _loc8_[§§constant(34)] == §§constant(43))
{
_loc2_ = _loc2_ + 1;
}
if(_loc5_[§§constant(34)] == §§constant(65) or _loc5_[§§constant(34)] == §§constant(43))
{
_loc2_ = _loc2_ + 1;
}
_loc3_ = getTimer() - _loc3_;
return _loc2_;
};
_loc2_[§§constant(105)] = function(x, y)
{
var _loc2_ = getTimer();
var _loc7_ = this[§§constant(59)](x,y - 1);
var _loc5_ = this[§§constant(59)](x,y + 1);
var _loc8_ = this[§§constant(59)](x - 1,y);
var _loc6_ = this[§§constant(59)](x + 1,y);
if(_loc7_[§§constant(34)] == §§constant(52) or _loc5_[§§constant(34)] == §§constant(52) or _loc8_[§§constant(34)] == §§constant(52) or _loc6_[§§constant(34)] == §§constant(52))
{
return true;
}
return false;
};
_loc2_[§§constant(106)] = function(x, y)
{
return this[§§constant(107)][y][x];
};
_loc2_[§§constant(108)] = function()
{
var _loc4_ = new §\§\§constant(63)§();
var _loc2_ = new §\§\§constant(2)§();
var _loc5_ = 0;
while(_loc5_ < this[§§constant(8)])
{
var _loc3_ = 0;
while(_loc3_ < this[§§constant(7)])
{
_loc2_ = this[§§constant(59)](_loc3_,_loc5_);
if(_loc2_[§§constant(34)] == §§constant(47))
{
_loc4_[§§constant(69)](_loc2_);
}
else if(_loc2_[§§constant(34)] == §§constant(43) and _loc2_[§§constant(109)])
{
_loc4_[§§constant(69)](_loc2_);
}
else if(_loc2_[§§constant(34)] == §§constant(45) and _loc2_[§§constant(109)])
{
_loc4_[§§constant(69)](_loc2_);
}
_loc3_ = _loc3_ + 1;
}
_loc5_ = _loc5_ + 1;
}
return _loc4_;
};
_loc2_[§§constant(110)] = function()
{
var _loc16_ = getTimer();
var _loc15_ = this[§§constant(108)]();
var _loc14_ = _loc15_[§§constant(32)];
var _loc11_ = new §\§\§constant(2)§();
var _loc2_ = new §\§\§constant(2)§();
var _loc12_ = undefined;
var _loc6_ = undefined;
var _loc5_ = undefined;
var _loc10_ = undefined;
var _loc9_ = undefined;
var _loc4_ = undefined;
var _loc3_ = undefined;
this[§§constant(107)] = new §\§\§constant(63)§();
var _loc7_ = 0;
while(_loc7_ < this[§§constant(8)])
{
this[§§constant(107)][_loc7_] = new §\§\§constant(63)§();
var _loc8_ = 0;
while(_loc8_ < this[§§constant(7)])
{
this[§§constant(107)][_loc7_][_loc8_] = false;
_loc8_ = _loc8_ + 1;
}
_loc7_ = _loc7_ + 1;
}
if(_loc14_ > 0)
{
var _loc13_ = 0;
while(_loc13_ < _loc14_)
{
_loc11_ = _loc15_[_loc13_];
_loc6_ = _loc11_[§§constant(22)];
_loc5_ = _loc11_[§§constant(23)];
_loc12_ = _loc11_[§§constant(99)];
_loc9_ = _loc5_ - 1;
_loc3_ = _loc5_ - _loc12_;
_loc3_ = _loc3_ > 0 ? _loc3_ : 0;
if(_loc9_ >= _loc3_)
{
_loc7_ = _loc9_;
while(_loc7_ >= _loc3_)
{
_loc2_ = this[§§constant(59)](_loc6_,_loc7_);
if(_loc2_[§§constant(34)] == §§constant(39) or _loc2_[§§constant(34)] == §§constant(41) or _loc2_[§§constant(34)] == §§constant(36))